using NGUI;
using UnityEngine;

using static Minesweeper.GameStatic;

namespace Minesweeper.GUI
{
    public class PauseMenu : Hidable
    {
        private void Update()
        {
            if (Input.GetKeyDown(KeyCode.Escape))
                Toggle();
        }

        public override void Show()
        {
            base.Show();
            Paused = true;
        }
        
        
        public override void Hide()
        {
            base.Hide();
            Paused = false;
        }
    }
}